import Vue from 'vue'
import App from './App'
import store from './store'
import tabBar from './components/layout/index.vue'
import navBar from './components/navBar/index.vue'
import uView from "uview-ui"
import {router,RouterMount} from './permission.js'  //路径换成自己的

Vue.prototype.$store = store
Vue.component('tab-bar', tabBar)
Vue.component('nav-bar', navBar)
Vue.use(uView)
Vue.use(router)
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})

//v1.3.5起 H5端 你应该去除原有的app.$mount();使用路由自带的渲染方式
// #ifdef H5
	RouterMount(app,router,'#app')
// #endif

// #ifdef MP-WEIXIN || APP-PLUS || QUICKAPP-WEBVIEW
	app.$mount(); //为了兼容小程序及app端必须这样写才有效果
// #endif